<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: Ivan wei
  --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>成绩管理系统</title>
    <style>
        .i{
            width: 150px;
        }
        tr{
            height: 36px;
            text-align: center;
        }
        input{
            outline: none;
        }
        a:link {color: blue; text-decoration:none;}
    </style>
</head>
<body>
<h1 style="text-align: center">广州现代教务系统管理</h1>
<div>
    <%@ include file="/common.jsp" %>
<div style="display: flex;justify-content: space-around;">
    <h5>成绩管理-成绩录入${whole}</h5>
    <h5>  当前班级： ${cid} </h5>
    <h5> 当前课程：${coid} </h5>
</div>
<div style="display:flex;justify-content: center;">
    <table width="90%" border="1" cellspacing="0" style="background-color: rgb(235,242,241)">
        <tr>
            <th>学号</th>
            <th>班级编号</th>
            <th>手机号</th>
            <th width="130px" style="min-width: 80px">学生姓名</th>
            <th>课程编号</th>
            <th width="190px" style="min-width: 150px">课程名称</th>
            <th>分数</th>
            <th width="70px">操作</th>
        </tr>
        <c:forEach var="TeacherScore" items="${teaScore}">
            <form action='/teacher/findClass/updateScore.do' method="post">
                <tr>
                    <td><input class="i" type="text" name="id" value="<c:out value="${TeacherScore.id}"></c:out>" readonly></td>
                    <td><input class="i" type="text" name="cid" value="<c:out value="${TeacherScore.clazz}"></c:out>" readonly></td>
                    <td><input class="i" type="text" value="<c:out value="${TeacherScore.phone}"></c:out>" readonly></td>
                    <td><c:out value="${TeacherScore.name}"></c:out></td>
                    <td><input class="i" type="text" name="coid" value="<c:out value="${TeacherScore.coid}"></c:out>" readonly></td>
                    <td><c:out value="${TeacherScore.coname}"></c:out></td>
                    <td><input class="i" type="text" name="scores" value="<c:out value="${TeacherScore.scores}" ></c:out>" required="required" oninput="value=value.replace(/[^\d]/g,'')"></td>
                    <td><input type="submit" value="保存"></td>
                </tr>
            </form>
        </c:forEach>
    </table>
</div>

</body>
</html>
